package com.abc.chain.demo;

/**
 * 校长处理
 */
public class MasterHandler extends Handler {

   @Override
   public void handleRequest(Long day) {

      if (day <= 20) {
         System.out.println("The master approval");
      }
      else {
         if (getNext() != null) {
            getNext().handleRequest(day);
         }
         else {
            System.out.println("No person approval");
         }
      }


   }
}
